计算机与现代化 ›› 2011, Vol. 1 ›› Issue (3): 124-126,.doi: 10.3969/j.issn.1006-2475.2011.03.035

• 应用与开发 • 上一篇    下一篇

Oracle数据库的SQL语句优化

钟小权1,叶 猛2   

  1. 1.武汉邮电科学研究院研究生院,湖北 武汉 430074;2.武汉虹旭信息技术有限责任公司,湖北 武汉 430074
  • 收稿日期:2010-11-04 修回日期:1900-01-01 出版日期:2011-03-18 发布日期:2011-03-18

Optimization of SQL Sentence for Oracle Database

ZHONG Xiao-quan1, YE Meng2   

  1. 1. Graduate School, Wuhan Research Institute of Posts and Telecommunications, Wuhan 430074, China;2. Wuhan Hongxu Information Technology Co., Ltd., Wuhan 430074, China
  • Received:2010-11-04 Revised:1900-01-01 Online:2011-03-18 Published:2011-03-18

摘要: 随着数据库应用系统中数据的增加,系统的性能提高成为数据库系统中需要解决的主要问题,在系统硬件不变的情况下,SQL语句的优化成为系统性能提高的主要途径。本文通过分析Oracle数据库执行SQL语句的过程,采用比较SQL语句优化之前和优化之后的执行时间和调用的数据块数量方法来判断优化效果,最后得到消耗时间少和调用数据块少的SQL语句。

关键词: Oracle数据库, 优化, 优化器, 索引

Abstract: In database application systems, performance becomes one of their main problems needed to be resolved with the increase of data in it. The optimization of SQL sentence is a main way to promote the performance of the system under the same hardware condition. This paper analyzes the execution processes of SQL sentence in Oracle database, compares the execution time and number of data blocks called in before and after of optimization to determine the optimal effect. Finally, the paper gets the SQL statement that time consuming less and data block calling less.

Key words: Oracle database, optimization, optimizer, index

中图分类号: